home *** CD-ROM | disk | FTP | other *** search
- /*$VER: ElevateTag.rexx 1.0 (21.3.98)
- **
- ** $Filename: Elevatetag.rexx $
- ** $Version: 1.0 $
- ** $Date: 21.3.98 $
- ** $Creation: 21.3.98 $
- ** (C) Copyright 1998-2000 Paul Compton
- **
- ** I found that on the odd occasion I thought of a tagline and wanted to
- ** add it to a tagline file, but couldn't be bothered to go to my text editor
- ** to add it, this solved the problem nicely.
- ** dead easy to use, Enter your default choice where you keep your tags here
- */
-
- dtagdir = 'tags:' /*Enter your default choice for directory*/
-
- /* Enter your default choice of tagline files in that directory here*/
-
- dtagfile = 'newtags' /*Enter your default tagline file*/
-
-
-
-
-
- /*-------------------change nothing else---------------------------*/
-
-
- NL = '0a'x
- bufferflush
- call addlib('rexxreqtools.library',0,-30,0)
-
-
- START:
- tagen = rtgetstring("Delete me & enter new tagline","Insert the tagline you wish to add:", "ElevateTag V1.0","_Add|_New|_Forget it" ,)
- ans=rtresult
-
- Select
- when ans = '1' then call ADDTAG
- when ans = '2' then call REQCALL
- otherwise;
- end
- exit
-
- ADDTAG:
- dtagcomp = dtagdir''dtagfile
- if exists(dtagcomp) then call insertag
- else
- call reqcall
- exit
-
- REQCALL:
- dtagcomp = rtfilerequest(dtagdir,dtagfile , "Pick a file" , , "rtfi_buffer = true",nope)
- if nope = 0 then exit
- if exists(dtagcomp) then call insertag
- else
- call open('sres',dtagcomp,'W')
- close ('sres')
- call insertag
- exit
-
- INSERTAG:
- call OPEN('sres',dtagcomp,'A')
- call WRITELN('sres','%%')
- call WRITELN('sres',tagen)
- close('sres')
-
- call rtezrequest("Tagline" || NL ||tagen ||NL|| "written to" ||NL|| dtagcomp , "OK", ,)
-
- exit
-
- NODIR:
- call rtezrequest("Please edit the file ElevateTag and insert your default directory and file" , "OK", ,)
-
-
- exit
-